package carImplements;

import interfaces.IProduct;
import interfaces.IProductPart;

public class Car implements IProduct {

	private IProductPart firstPart;
	public IProductPart getFirstPart(){
		return firstPart;
	}

	private IProductPart secondPart;
	public IProductPart getSecondPart(){
		return secondPart;
	}
	
	private IProductPart thirdPart;
	public IProductPart getThirdPart(){
		return thirdPart;
	}
	
	
	public Car() {
		
		super();
		System.out.println("Create preform car");
	}

	@Override
	public void installFirstPart(IProductPart part) {
		
		this.firstPart = part;
		System.out.println("Installed the first part");
	}

	@Override
	public void installSecondPart(IProductPart part) {

		this.secondPart = part;
		System.out.println("Installed the second part");
	}

	@Override
	public void installThirdPart(IProductPart part) {

		this.thirdPart = part;
		System.out.println("Installed the third part");
	}

}
